make test_polygon working