#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
 
void solve(){
 	ll n,mx=0;cin>>n;
 	vector<ll> c(n),a(n),b(n),dp(n,0);
 	for(ll i=0;i<n;i++){cin>>c[i];}
 	for(ll i=0;i<n;i++){cin>>a[i];}
 	for(ll i=0;i<n;i++){cin>>b[i];}
 	for(ll i=1;i<n;i++){
 	    if(a[i]==b[i]){dp[i]=c[i]+1;}
 	    else{dp[i]=max(dp[i-1]-abs(a[i]-b[i])+1+c[i],c[i]+1+abs(a[i]-b[i]));}
 	}
 	for(ll i=0;i<n;i++){mx=max(mx,dp[i]);}
 	cout<<mx<<endl;
 }
signed main(){
    fast;
    ll t;cin>>t;while(t--){solve();}
    return 0;
}