If the user-defined function is faulty, then the test is faulty.  After taking a better look at `Y.Array.unique()`, it does make sense to use it instead, and it is a common situation to test to make sure you don't have any duplicate objects, when adding new Models, for instance.

Perhaps change it to:

`hasNoDuplicates: function (array, [comparator], [message])`?