Added a test for checking for duplicates in linked list

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