Refactored MessageWrapper test.