Fix test failing to randomness.