Test wait for emulator