add histogram unit test