unit tests for yermilov/polygonization-21