InMemoryRepositoryTest Refactoring