added higher order autodiff tests for trace_inv_quad_form_ldlt and trace_gen_inv_quad_form_ldlt