Tests for provider code structure (#23351)