Add message dispatching unit-tests.