test using slices.IsSorted