Test case for Messages controller.