Updated HistoStats to make compenstation measurement and added tests for this functionality