fix httpretty based test cases if http_proxy is set.

previously this would fail:
  http_proxy=http://foo.bar make test

now it will pass.  This works around a bug where httpretty is not able to
patch http operations if http_proxy is set.

https://github.com/gabrielfalcao/HTTPretty/issues/122