DEV: Tests can reset a single registry (PR #13618)

Plugins can use this method to reset their specific registries without touching the ones defined in core.

GitHub