Fix `sortedIndex` method tests for phantomjs.