added ADC test code