Added tests for NaN/Infinity