uniqWith tests and consistent with uniq ordering