Remove old histogram function
Correct tests