#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
	ll i,j,k,m,n,t;
	cin>>t;
	while(t--)
	{
		cin>>n;
		ll ar[n];
		for(i=0;i<n;i++)
		cin>>ar[i];
		ll first[n],last[n];
		for(i=0;i<n;i++)
		cin>>first[i];
		for(i=0;i<n;i++)
		cin>>last[i];
		ll ans=0;
		ll ctr=ar[n-1];
		for(i=n-1;i>=1;i--)
		{
			if(first[i]==last[i])
			{
				ans=max(ans,ctr+1);
				ctr=ar[i-1];
				continue;
			}
			ans=max(ans,ctr+abs(last[i]-first[i])+1);
			ctr=max(ctr+ar[i-1]-abs(last[i]-first[i])+1,ar[i-1]);
		}
		cout<<ans<<endl;
	}
}