Added unit tests for histogram classes.