unit test deleting a collection