Convert CollectionFactoryTestCase into protocol