Add tests for RepositoryManager