code and tests for duplicates uniqs.