Wrote failing tests for the query order