[new] Test for _remove_duplicates