setting host; checking error check

These are a couple of small changes

1. One-liner change to make host name configurable.

2. The actual error message is located in $xml->{Errors}{Error}{Message}. I wrote a test case to go with my submitted code.

I just wanted to submit something quick, so you have a chance to look at it.