Fix test. MSVC doesn't have definition of NAN

So use quiet_NaN, infinity