Added the wait_for_emulator to fix the travis ci build.