Fixed run time errors and updated unit tests for the linked list