MIC testing code