test_hash.c: refactor into kunit