make opt tests deterministic