added NaN test for multiply