added test for countPets