Added tests for CheckMessage.