Added tests for MessagesWrapper.