revise polygon test unit