Updated infinity test better way.
Added NaN tests.