add test for template function call