Add tests for the grad of the op version (which is broken for now).