[demo] Added test case for named pairs on adg-demo
[demo] Added test case for named pairs on adg-demo

Computing the total length using named pairs just to check if the
..._from_model() APIs are working.

ntd/adg,ntd/adg