Added a test for checking for duplicates in linked list

This added a test for linked lists to assure that no duplicates can be inserted.