Linked list test cases