fix a non-deterministic test