test case for --check-duplicates