corrected test for UserRepositoryFactory