Change thesaurus tests so they can be parallelized.