add test case for linked list