added test for collection