[MRG] fix unstable hist test