Improving Roe's averages and correcting some bugs in Rankine-Hugoniot tests