Test that duplicate files are removed