refactor hash test/llist test