Improved the unit test of the array keys order.