Additionally, add an API test to check that the no-duplicates addition works after duplicates have been inserted.