Tests expect NaN for invalid ranges
Merge pull request #1 from jonbinney/fix-tests

Fix tests to handle NaNs