Add tests for getIntersectionPoint and fix bug in it