correctly test error status ssh-agent