Make tests deterministic