Verify that the histogram accumulator works with nans.