Making UrlHelper's methods virtual

/cc: @rynowak @yishaigalatzer 
Is this used in the test?