In addition to everything else mentioned here they spent a TON of money[1]. For example they spent what would be 3.6 billion 2016 dollars on Guidance and Navigation. If your current project could drop a few hundred million on QC I bet quality would go way up regardless of automated testing or not.
[1]http://history.nasa.gov/SP-4029/Apollo_18-16_Apollo_Program_...