Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.