metadata_url test added and impl fixe