test finds duplicates
exit 1 if duplicates