Added tests for Double's NaN, -Infinity and Infinity.