generic double linked list testing