Added test for trajectory simulator.