finish tests for RpcCodec encode/decode