fix warpingFunction{Quadratic,Cubic} and add test case for warpingFunctions