Add test for Trajectory.