Test wait_for_emulator