TST add unittests, for changes with index order, is_sorted, and nans