Fix failing tests that rely on hash keys order under perl 5.17.10