Added tests for messageSystem