Add tests for TimeSorter.