Fixed proxymanager headers logic
Added proxymanager tests with tornado-based proxy