[mpi] Add 1D test

o use decorator to cast shapes into tuples
o 1D fix and argument validation