#22 implement test for functions in templates