Test if getHash is stable

This is split from #132.
I try to understand that but I see no argument. Instead I see pointless code duplication or dependency injection hell.