Add test for NaN, achieving 100% code coverage