Remove dead code.
Test trajectories with overlapping segments.

Excercise the case when a segment's end_time is greater than the next segment's
start_time.