For a number of reasons computers are much worse to conduct an election than traditional pen-and-paper ballots. One of those reasons is algorithmic complexity, another is the inherently opaque ways the hardware does its work, meaning it is practically not feasible to conduct a trustworthy test—all you can do is make it more or less plausible that the system performed as expected at a given point in time, for a given set of inputs. In principle, this tells you nothing about how the system will behave (or did behave) at any other point in time, or how it would have behaved with a single bit in the input switched.
The entire premise of conducting elections on networked computers is a shaky one. We do not have any of the problems that are allegedly solved by using electronic voting machines: paper-based elections are not too expensive, they're not too slow, they're not too untrustworthy. The only aspect that computers in the voting booth could conceivably solve is speed, at the expense of electoral trust and quite possibly tax dollars paid.
In as far as computers are involved in doing an election, they should only be used as adding machines and to transmit local results up to the responsible officers. Even then, thorough checks on the machines—hardware and software alike—have to be conducted, backups such as telephones and fax machines should be thought of, and, most importantly apart from having an eye on the procurement of the required manpower, a consistent paper trail has to be collected and kept safely sealed for the case of re-counting, of which at least a single one should always be done.
It has become sort of a mantra for some tech-oriented people and society that automation is good, computers don't err, and less people on the job is a good thing. None of these is a given. Quite the contrary, take in lots of paid volunteers to count the ballots, to staff the polling stations, to guard the ballots and you have a 'distributed compute system' that is highly resistant to tampering. Also, it deepens the experience in the population that 'we as a people' are doing 'our elections' and it works because we can all trust each other, to the degree necessary. Do your elections electronically, and you'll turn the communal experience to a bureaucratic act. Also, the keys to the kingdom will be just one forged access token away, stored on some server.
Every single day for many years now firms, hospitals, and infrastructure has become the target of ransomware, malware, and espionage. Whoever tells you that elections should be 'digitalized' is either stupid, a liar, or both.