Fix test failure on Mojolicious 4