added more tests to test_polygon.js