test using the gradient computation

Signed-off-by: Axel Davy <axel.davy@ens.fr>