add test for jacobian