testing with rspec for http and socks proxies