Added test to ensure duplicates are ignored