Jacobian and tests