adds tests for preventDuplicates override