Unit test remaining HashDb functions (except for reindexing).