add test for linked list