tests/dnn/mathunary: fix the issue of NAN