PCT-697: Agent is running but PCT says it's not

* PCT-697: Agent is running but PCT says it's not
* PCT-629: Agent running but not connected
I took as example https://github.com/percona/percona-agent/blob/release/client/client_test.go#L94