added test for getCount of collection