Added tests for RepositoryMetadata