ticket:8 add test for template tag