all in one test.cpp main() so that MPI_Barrier may be used for time tests