added correct NaN test