Add tests for intermediateMessageThrowEvent