moved Tor test in the proper switch