Update datagrid unit tests to include subquery checks.
Review Request #13373 — Created Oct. 23, 2023 and submitted
This updates the datagrid unit tests to use the new subquery checks,
which demonstrates well just how complex our pagination queries are.
All datagrid tests now opt in to these subquery checks and have been
updated to reflect the current queries.
Unit tests pass.