Test render_template corner cases