Compare the time with the "current" time retrieved from ClockVM just before comparing, not with the test start time. This should work even if the test machine is quite slow (test taking more than 30s).