Fixed receive command tests.
Fixed code so that all maze tests pass.