Added coverage and changed to session pool for ssh.