Fix a bunch of failed tests: replace tves with order by columns, edge cases