test(saveComponents.spec.ts): add test case to save the same component multiple times and verify the count of saved components