Fix text matching tests.