Test if getHash is stable

This is split from #132.
That seems to imply we should have such references with all serialization stability tests to all other serialization stability tests - guess this is not what you want though? I'm not sure what the added value is, and it seems pretty arbitrary to do it just here.