Add test for scoreDuplicates