Add IPv6 tests.
Make Tor control socket tests a little more robust.