Added tests for messaging