Made the tests deterministic regardless of jdk