An ADC histogram test based on small-amplitude waves