Allow mock overriding with functions

Not very pretty.
If(!url) then concat with url ?