fix test that fails if it runs too fast