Testing MessagesPublisher class