Fixed lexer key validation. Fixed tests.