add selfIntersections test