Added tests for the message view