Adding calculation of spline C2 and tests for it.