Corrected timeouts for latch waits.
Added tests with forward proxies configured in HttpClient.