Make testcase more robust vs. timing variations