Fix test failure caused by unstable dict order.