[Middle English testifien, from Latin testificamacr.gifrimacr.gif : testis, witness; see trei- in Indo-European roots + -ficamacr.gifrimacr.gif, -fy.]

I think the latin TESTIS got confused with the modern TESTES.