Fix a bug in the ADC test program