add a test for nans