fix rpc tests