Move (and slightly change) the jacobian test from the Python directory.