add testing for lexer
updated the test of lexer