Add tests for backport of timers fix that prevent time
drifting and inconsistent time changes to break them.