add test source for template and callback