correct jac for beta and update test