Fix init event content nil when in test mode.