Added some cases for getting Inf & NaN.