ADC sinewave histogram testing with quasi-coherent sampling