Fix bug in test_dist_io teardown method.
Make metadata_utils test MPI/IPython agnostic