#include <bits/stdc++.h>
const int N = 200005;
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int m, n, a[55][55], minn;
    set<int> r, c;
    cin >> m >> n;
    for (int i = 0; i < m; i++) {
      for (int j = 0; j < n; j++) {
        cin >> a[i][j];
        if (a[i][j] == 1) r.insert(i), c.insert(j);
      }
    }
    minn = min(m - r.size(), n - c.size());
    if (minn % 2 != 0)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
  return 0;
}
