Add failing test for wrapped templates.
Fix wrapper templates issue.