Added Tests for MessagesController