[mips] Improve robustness of some tests.