added NaN test for acos
update nan test for agrad/rev/acos