Fixed incorrect NaN tests