Add basic function test for doubly linked list.