Fix the hash ordering related test on 1.8.7