Compile fix, and test fix, when you ask for a Curve, you should get one, not a LineString