This `when` means that the request is never actually returned from this function unless the proxy-host is set, which makes all the tests fail.