Sort of hash in code and in test