tests: add tests of hashtable functions