Madison election officials tested ballot-counting machines Saturday ahead of the Aug. 11 partisan primary election.