Fixed issue with duplicate checking code - tests ftw
Updated tests to include dupes and build