Refactor MessagesControllerSpec to use test helpers