[PATCH 7/9] reg/tests: Split 'export' tests from reg.c