Update tests to include render template function