#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int r, c, ele;
    cin >> r >> c;
    vector<vector<int>> v;
    bool rb[r], cb[c];
    memset(rb, true, r);
    memset(cb, true, c);
    for (int i = 0; i < r; i++) {
      for (int j = 0; j < c; j++) {
        cin >> ele;
        if (ele == 1) {
          rb[i] = false;
          cb[j] = false;
        }
      }
    }
    int availrow = count(rb, rb + r, 1);
    int availcol = count(cb, cb + c, 1);
    int minavail = min(availcol, availrow);
    if (minavail % 2)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
}
