function testTree1() {
  var treeBefore =
      'project()\n' +
      '-order_by(SimpleTable.salary DESC)\n' +
      '--select(value_pred(SimpleTable.id gt 100))\n' +
      '---table_access(SimpleTable)\n';

  var treeAfter =
      'project()\n' +
      '-select(value_pred(SimpleTable.id gt 100))\n' +
      '--table_access_by_row_id(SimpleTable)\n' +
      '---index_range_scan(' +
          'SimpleTable.idx_salary, [unbound, unbound], natural)\n';

  lf.testing.treeutil.assertTreeTransformation(
      constructTree1(simpleTable['salary'], lf.Order.DESC),
      treeBefore, treeAfter, pass);
}
Tests a tree where the contents of a table are filtered by a value predicate
referring to a different column than the one used for sorting.