Throw an error if pennyworth has no host

And set the host to self if running tests
Fix tests res.result -> res.output