Adjust a test for intermittent failures because of dict ordering