Fix test function compareSeries() to handle NaNs