test case for double linked list