replace httpretty with mock library