d: Add test for template block

Also use T instead of t.