Add tests on the order by