Replaced deprecated methods in UrlBuilderTest