SFTP: return $sftp object in unit tests