Tests combining C++ classes and MPI commands