Tests sorting and searching arrays with and without comparators