test urlByName function