make MPI tests work on any number of MPI tasks

15 jobs for generalize_mpi_tests in 20 minutes and 59 seconds (queued for 3 seconds)