added Hessian to functor-based autodiff with test