add new unit test for getScriptLexicalStructure