fix unit test by removing refresh_client_auth_token

Change-Id: I87479f0c9fd8b5a34905ccdcb8bb62b2ddcd2826
Encode the heartbest message

Change-Id: I04f4398dade1f8899fe02f5454399bc2fcf2176c