Changed the testing of the linked list in order to better test the list.