add dlist_destroy
add test code for dlist