Uses Test::Mojo::Trim to simplify and improve tests.
Removed unnecessary dependency.
Changes.