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