#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1LL << 60;
const long long N = 2e5 + 5;
void solve() {
  long long n, m;
  cin >> n >> m;
  long long a[n][m];
  long long r = 0, c = 0;
  for (long long i = 0; i < n; i++) {
    bool fl = true;
    for (long long j = 0; j < m; j++) {
      cin >> a[i][j];
      if (a[i][j]) fl = false;
    }
    if (fl) r++;
  }
  for (long long j = 0; j < m; j++) {
    bool fl = true;
    for (long long i = 0; i < n; i++) {
      if (a[i][j]) fl = false;
    }
    if (fl) c++;
  }
  long long x = min(r, c);
  if (x % 2) {
    cout << "Ashish";
  } else {
    cout << "Vivek";
  }
}
signed main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
