add regression test for NaN handling in errorbar mode.