Fixes coordinate encoder tests to be less sensitive to randomness.