Break get_repository_uri up into separate tests