Test if getHash is stable

This is split from #132.
What is the benefit of adding this? It works just as well without no? What I'd expect to see somewhere if you add such code is polymorphic usage, though that is not happening here, and I don't see how it would happen either.