cython wrap for testGradient

Same problem as with tReal, I can't recover
intent(out) scalar with generating a segfault.
It is not that important for now.