Corrected the tests for RepositoryService