added tests for C_polygon