Fixed test cases using depreciated Test::Mojo method

This fixes issue #7