Fixed flaw in testSlopes polygons.