Debug tests for sortedBy iterator. #36