made all tests deterministic