changes to MPI according to last meeting, more encapsulation
split tests for MPI to individual files, add missing on_error test