add tests for reconnect to upstream proxy, ensure that server_reconnect is always hooked