Fixing timing problems during test execution