#include<bits/stdc++.h>
using namespace std;
#define OJ \
    freopen("input.txt", "r", stdin); \
    freopen("output.txt", "w", stdout);
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long int 
int main(){
   
   //OJ
  ll t;
  cin>>t;
  while(t--){
    ll n,ans=0;
    cin>>n;
    ll arr[n]; 
    vector<ll> a(n);
    vector<ll>b(n);
    for (ll i = 0; i < n; i++)
    {
        cin>>arr[i];
    }
    for (ll i = 0; i < n; i++)
    {
      cin>>a[i];
    }
    for (ll i = 0; i < n; i++)
    {
      cin>>b[i];
    }
    ll sum=arr[n-1]-1;
    for (ll i = n-1; i >=1; i--)
    {
           if(a[i]==b[i])
           {
            ans=max(ans,sum+2);
            sum=arr[i-1]-1;
           }
           else
           {
            ans=max(ans,sum+2+abs(a[i]-b[i]));
            sum=max(sum+2+(arr[i-1]-1)-abs(a[i]-b[i]),arr[i-1]-1);
           }
    }
    cout<<ans<<endl;
  }
}



   
