Fix time-dependent test