linked list passed all tests
tests for linked list