add wait in test_switch, host_guest now can set the latest log