Made tests more deterministic.