#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<bool> r(n, true);
    vector<bool> c(m, true);
    for (int i = 0, temp; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> temp;
        if (temp) {
          r[i] = false;
          c[j] = false;
        }
      }
    }
    int a = 0, b = 0;
    for (auto x : r)
      if (x) a++;
    for (auto x : c)
      if (x) b++;
    if (min(a, b) % 2)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
  return 0;
}
