Fixed errors in Read/WriteLoopTests by calling MPI.barrier() when exiting the barrier