Fix failing specs for keys with private hash method