Working on unit test for simulator.