Test if getHash is stable

This is split from #132.
It's a comment targeted at devs possibly touching this code. Both "is a safeguard to make sure [...] is not changed unintentionally".