command: fixing test cases for keyring
agent: adjust rpc client tests for keyring