Added unit tests for RepositoryBase