improve test assumptions: assume content instead of assert; catch IOException so we also assume no UnknownHostException