#include <bits/stdc++.h>
using namespace std;
void func() {
  long long n, m;
  cin >> n >> m;
  long long a[n][m];
  for (long long i = 0; i < n; ++i) {
    for (long long j = 0; j < m; ++j) {
      cin >> a[i][j];
    }
  }
  long long x = 0, y = 0;
  for (long long i = 0; i < n; ++i) {
    bool flag = true;
    for (long long j = 0; j < m; ++j) {
      if (a[i][j] == 1) {
        flag = false;
        break;
      }
    }
    if (flag) {
      ++x;
    }
  }
  for (long long j = 0; j < m; ++j) {
    bool flag = true;
    for (long long i = 0; i < n; ++i) {
      if (a[i][j] == 1) {
        flag = false;
        break;
      }
    }
    if (flag) {
      ++y;
    }
  }
  long long z = min(x, y);
  if (z % 2 == 1) {
    cout << "Ashish"
         << "\n";
  } else {
    cout << "Vivek"
         << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) {
    func();
  }
}
