finished tests for messagehandler