Test if getHash is stable

This is split from #132.