Making UrlHelper's methods virtual

/cc: @rynowak @yishaigalatzer 
I added this as this was a duplicate with the test in line # 42