Moved UnivariateSpline calls to wrapper function, and added two elementary tests for it.