Fixed tests to support SSL certified connections

Related ISSUE #27