Fix tests. Probably should check spline accuracy