The test checks the sectionelse tag.
>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:root>
<opt:section name="sect">
{$sect.val1},{$sect.val2}
<opt:sectionelse>NO DATA</opt:sectionelse>
</opt:section>
</opt:root>
>>>>expected.txt
OUTPUT
>>>>result.txt
NO DATA