added polygon2d tests