Added test for mpi_type_for_ndarray.