Fix unit test on simulator.