Extended test script, saving a lot of time by storing cognate sets and
not re-inferring cognates every time.