Add test for histogram