agent: optimize rpc monitor test