Release/order-by-test-cases: Added tests for orderBy queries.