refactored repo_tag_from_urn and added unit test