[PATCH 2/2] reg/tests: Move 'delete' syntax tests into a separate function