added test.sh
Added test cases on Inf and NaN