test cases for bad lexer and grammer