fixed tests for histogram