added NaN test for trunc in agrad/fwd