Hash: add unit tests