Fix planeWithPlaneIntersection and test unit