linked list tests and corrections