Reworked tests to use Plack::Test

As of https://github.com/PerlDancer/Dancer2/issues/588 I've reworked a few tests to use Plack::Test instead of LWP::UserAgent and Test::TCP. As soon as I'll have some more time, I'll look at the rest as well.