[chore] RPC testing and fixes