TEST: add tests for jacobians (and a bug fix)