agent: first pass at rpc tests