Fix bug in the linked list unit test.