Adds support for secureConnect callback and fixes test
travisplexer: pr-442-linux travis ci test