Implemented functional test to check for duplicate items in user input