Use mock when specified via "url" variable