modify polygon test demo