Add tests for local fallback to registry patch