added test for NaN