Fix the build in 1.8.7

Just fixed up a couple of hash literals in the tests so that the build
passes for 1.8.7 :green_heart: