Better tests using NSArrayHasDuplicates