added test adc code. need to test