Add tests for NaN and inf
Merge pull request #19 from mdboom/add-nan-tests

Add tests for NaN and inf