made all linked list tests pass