Fix weird syntax in startTime/endTime tests
Improve start/stop time comparison reliability