Testing using internal ADC using a loopback sync