Fixed bug on dlist, improved unit test