spline testing example