test_for_remote_machine