Fix tests to work with Mojolicious 5+

Fixes broken tests so that this module now should build against Mojolicious 5+