Simplify lexer tests by introducing new checkContainsTokens function