#include <bits/stdc++.h>
using namespace std;
template <class T>
T mceil(T a, T b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b + 1;
}
template <class T>
T mfloor(T a, T b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b - 1;
}
void solve() {
  int n, m, cnt = 0;
  cin >> n >> m;
  vector<vector<int>> v(n, vector<int>(m, 0));
  for (int i = 0; i < n; ++i) {
    int one = 0;
    for (int j = 0; j < m; ++j) {
      cin >> v[i][j];
      if (v[i][j] == 1) {
        ++one;
      }
    }
    if (one > 0) ++cnt;
  }
  int x = 0;
  for (int i = 0; i < m; ++i) {
    int one = 0;
    for (int j = 0; j < n; ++j) {
      if (v[j][i] == 1) ++one;
    }
    if (one > 0) ++x;
  }
  if (min(n - cnt, m - x) % 2 == 0)
    cout << "Vivek";
  else
    cout << "Ashish";
}
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 0;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
}
