added a test for function calls in templates