fix test that fails late at night