#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> a(n, vector<int>(m));
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++) cin >> a[i][j];
    int gCol = m, gRow = n;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (a[i][j] == 1) {
          gRow--;
          break;
        }
      }
    }
    for (int i = 0; i < m; i++) {
      for (int j = 0; j < n; j++) {
        if (a[j][i] == 1) {
          gCol--;
          break;
        }
      }
    }
    int rowCol = min(gRow, gCol);
    if (rowCol % 2 == 0)
      cout << "Vivek" << endl;
    else
      cout << "Ashish" << endl;
  }
  return 0;
}
