fix tests for new created PlainLine node
use hop as the building tool
found 2 bugs with the help of hop
fix bugs and refactor
bug fix: should not parse ${…} in template directly, it can only be inside Dart code