Proxy fix

Fixes an issue when different proxies were specified in different requests i was only using the first specified proxy.
Also adding a test for proxy basic authentication