I think this entire block is unnecessary, due to checks you already perform in `ProxyManager.connection_from_host`. Try running all the tests with lines 93 - 96 commented out; they seem to all pass for me.