Change type-checking in test_hash

I thought @ElDeveloper had the world's most annoying comment with the :beers: thing, but this is far more annoying.