added adc tester code