added NaN test for step
added NaN test for sub
added NaN test for sum
added NaN test for trigamma
added NaN test for value_of