[PATCH] reg/tests: Split 'import' syntax tests into a separate function