Made tests compatible with Mojolicious 4.0+