Added unit tests for polygons