I've written 2 test programs, in runtime/toys/Gradients, to help to verify the implementation such support.