Use test host env variable in test
Fix edgecase where Ping throws exception instead of true/false

If the status code is not set but the response returns (and no
curl exception) it is possible to throw an exception from ping().
It now checks for existence and returns false if not set.