Thanks very much for this report.
You're quite correct that this is a bug, but it's actually quite a
different bug to what you had thought.
The problem is the known bug that statements in the body of a module are
not covered. You can see this by putting the code in Templates.pm into a
sub and calling that sub, or by not using a module and having that code
in the main script.
This is a bug I really want to work on, but it will have to wait just a
little longer.
Thanks again,