#include <bits/stdc++.h>
using namespace std;
void flash() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void solve() {
  long long n, a, b, da, db;
  cin >> n >> a >> b >> da >> db;
  vector<vector<long long> > v(n + 1);
  for (long long i = 1; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  long long mxpath = 0;
  function<long long(long long, long long)> dfs =
      [&](long long u, long long p) -> long long {
    long long mx = 0;
    for (auto it : v[u]) {
      if (it == p) {
        continue;
      }
      long long tmp = dfs(it, u);
      mxpath = max(mxpath, tmp + mx);
      mx = max(tmp, mx);
    }
    return mx + 1;
  };
  long long dis = 0;
  function<void(long long, long long, long long)> finddfs =
      [&](long long u, long long p, long long d) {
        if (u == b) {
          dis = d;
          return;
        }
        for (auto it : v[u]) {
          if (it == p) {
            continue;
          }
          finddfs(it, u, d + 1);
        }
      };
  finddfs(a, 0, 0);
  dfs(1, 0);
  if (mxpath <= da * 2 or dis <= da) {
    cout << "Alice"
         << "\n";
    return;
  }
  if (db <= 2 * da) {
    cout << "Alice"
         << "\n";
    return;
  }
  cout << "Bob"
       << "\n";
}
int32_t main() {
  flash();
  long long t;
  t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
