Add tests for intermediateMessageCatchEvent