Add tests for Trajectories (fix #14)