use OwsHttpClient instead of URLConnection to enable SSL; fixed test