#include <bits/stdc++.h>
using namespace std;
int t;
int n;
int a[8000005];
int b[8000005];
inline int read() {
  char c = getchar();
  while (c < '0' || '9' < c) c = getchar();
  int x = 0;
  while ('0' <= c && c <= '9') {
    x *= 10;
    x += c - '0';
    c = getchar();
  }
  return x;
}
int main() {
  t = read();
  while (t--) {
    n = read();
    for (int i = 1; i <= n; ++i) {
      a[i] = read();
      for (int j = 1; j <= 3; ++j) {
        a[i + j * n] = a[i + (j - 1) * n];
      }
    }
    for (int i = 1; i <= n; ++i) {
      b[i] = read();
      for (int j = 1; j <= 3; ++j) {
        b[i + j * n] = b[i + (j - 1) * n];
      }
    }
    if (n == 2) {
      if (b[1] + b[2] >= a[1] + a[2])
        printf("YES\n");
      else
        printf("NO\n");
      continue;
    }
    for (int i = 1; i <= n * 4; ++i) {
      if (b[i - 1] - a[i - 1] > 0) a[i] -= b[i - 1] - a[i - 1];
      a[i] = max(a[i], 0);
    }
    bool ok = true;
    for (int i = n * 2 + 1; i <= n * 3; ++i) {
      ok &= b[i] >= a[i];
    }
    if (ok)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
