Add test for render_text