RepositoryFactory tests