Added dotMPI tests and fixed a bug in dotMPI.