Changed the unit test to account for the fact that messageType is being
set in the controller.