Added test and fixed an error for BezierSpline