Update mpi_test.c

Fixed bugs that made this test not work.  It is now working.