Improve monte test runer and fix a few tests.