Adding failing test case to show bug.
Fixing NaN issue.
Merge pull request #2 from shortstuffsushi/bugfix/NaNIsNotANumber

NaN is not a number