tests/cubic-b-spline.cc: use clone function
tests/vector-interpolation.cc: use clone function