update nan test for agrad/rev/abs