added more NaN tests for fwd/functions