test-hashmap.c: add unit-test for hashmap
hashmap.h: fix coding style issue