Templated functions in diff_function_unnittest