added some tests for connections behind proxies