Added a unit test for color_histograms()

Fixed a small error in color_histograms() as well.