As flawed as the voting machines maybe, there was a discussion about this on Minnesota Public Radio yesterday, and it was brought up that the machines are tested by independent committees, and after approval they're purchased by states. I don't recall the name of the commissions that does the testing, or the details of it, but the show can be found on MPR's web site:
http://news.minnesota.publicradio.or...20041115.shtml