I may be wrong but did I read somewhere that Ze Germans already had this kind of infrastructure for more testing in place as one of their key industries?
Also according to the website above many countries have done more testing per capita than Germany including Italy. Which suggests that testing doesn't seem to be the only answer to their success.