Added Hessian API and updated Hessian test