[GeoLib] Test for createPolygonTrees().
[GeoLib] Fix bug in createPolygonTrees().