Added unit test for lexer.