Merge pull request #506 from ndawe/master

[MRG] fix unstable hist test