reg/tests: Refactor 'add' tests into registry types, keys and syntax checks.