Applied some fixes to accomplish mpi tests.

5 jobs for master in 12 minutes and 12 seconds