added quad_form_diag higher order autodiff tests