Hugh McMaster : reg/tests: Split 'query' tests from reg.c.