[PATCH 1/2] reg/tests: Compare output of some 'query' recursion tests