adding test to ensure that NaN is not coerced to undefined server side