Add test for `on` key in public.json