Improve test (avoid non-deterministic results).