[PATCH 2/4] reg/tests: Split 'export' syntax tests into a separate function