Fixed tests and LinearSpline.