Testing MessagesContext class