Add functional test to prevent adding of duplicate items