Improving histrogram. Adding tests for histogram binning