[PATCH v2] lib/hashtable_test.c: add test for the hashtable structure