Making time tests a bit more resilient