made time based unit tests more robust