Making UrlHelper's methods virtual

/cc: @rynowak @yishaigalatzer 
fix formatting