Hash: fix unit tests