Fix test crashes with MPI_Finalize
Fix test crashes with MPI_Finalize

alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,alexfrolov/grappa,buaasun/grappa,alexfrolov/grappa,buaasun/grappa,uwsampa/grappa,uwsampa/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,uwsampa/grappa,uwsampa/grappa,buaasun/grappa