tests: add test_hash