Added tests for messages view