//#include<debug.h>
#include<bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define pb push_back
using namespace std;

const int N = 2e5 + 10, MOD = 1e9+7, inf = 0x3f3f3f3f, INF = 0x3f3f3f3f3f3f3f3fll;
int a[N], b[N], c[N], up[N];

signed main()
{
	ios::sync_with_stdio(false);
	int T;
	cin >> T;
	while (T--) {
		int n;
		cin >> n;
		for (int i = 1; i <= n; i++) cin >> c[i];
		for (int i = 1; i <= n; i++) cin >> a[i];
		for (int i = 1; i <= n; i++) cin >> b[i];
		int mx = 0, now = 0;
		for (int i = 2; i <= n; i++) {
			int tmp = abs(a[i] - b[i]);
			if (a[i] != b[i]) tmp = max(tmp, now - tmp);
			now = tmp + 1 + c[i];
			mx = max(mx, now);
		}
		cout << mx << '\n';
	}
	
    return 0;
}

