Add test case for removing duplicates.