#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> v(n);
    map<int, int> r;
    map<int, int> c;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        int x;
        cin >> x;
        v[i].push_back(x);
      }
    }
    int can = n;
    int ok = m;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        bool one = 0;
        if (v[i][j] == 1) {
          one = 1;
          r[i]++;
          c[j]++;
        }
        if (c[j] == 1 && ok > 0 && one) {
          ok--;
        }
        if (r[i] == 1 && can > 0 && one) can--;
      }
    }
    if (min(can, ok) % 2 == 0) {
      cout << "Vivek" << '\n';
    } else
      cout << "Ashish" << '\n';
  }
  return 0;
}
