polygon corner cases fix; new test map