Unit test for the average histogram class