implemented test connect in nssh