fix tests of lexicon