Add test for the warn event when using the deprecated component.json.