Fixed a bug in proxy server and cookie forwarding, where a test was
misplaced