controller test for returning empty seq when no result found
Added pending tests
change factoryIdToFactory to not be implicit