Add basic tests for histograms