making test suite compatible with Mojolicious 4