Added tests for HistogramData and HistogramDataFactory.