added tests for template filter