Polygon testing