test.c for hash