Fixed ADC test code