#include <bits/stdc++.h>
using namespace std;
int x;
bool checkrow(vector<vector<int>> &arr, int n, int m) {
  for (int i = 0; i < m; i++) {
    if (arr[n][i] == 1) {
      return false;
    }
  }
  return true;
}
bool checkcol(vector<vector<int>> &arr, int n, int m) {
  for (int i = 0; i < n; i++) {
    if (arr[i][m] == 1) {
      return false;
    }
  }
  return true;
}
int main() {
  int t;
  cin >> t;
  while (t-- > 0) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> arr;
    for (int i = 0; i < n; i++) {
      vector<int> a;
      for (int j = 0; j < m; j++) {
        cin >> x;
        a.push_back(x);
      }
      arr.push_back(a);
    }
    int count = 0;
    bool flag;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (arr[i][j] == 0 && checkrow(arr, i, m) == true &&
            checkcol(arr, n, j) == true) {
          arr[i][j] = 1;
          count++;
        }
      }
      if (i == n - 1) {
        if (count % 2 != 0) {
          cout << "Ashish"
               << "\n";
        } else
          cout << "Vivek"
               << "\n";
      }
    }
  }
}
