Fix tests by adding Tor-mode parameter to test_connection.py