State-run labs tested 24 brands of formula for pesticides and four heavy metals: mercury, cadmium, arsenic and lead.