removed level from testmock error msg
added tests for messaging method .canMessage
closed #2321