expanded NaN testing framework to handle 3 variables
added NaN test for fma