Modified tests for Mojolicious 4.x

Replaced method `render_text` with method `render(text=>...)`