fixes spec failing in 1.8.7 due to indeterminate hash ordering