Added isUnique and its tests