#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    int a[n][m];
    int r, c;
    r = c = 0;
    for (int i = 0; i < n; i++) {
      int sum = 0;
      for (int j = 0; j < m; j++) {
        cin >> a[i][j];
        sum += a[i][j];
      }
      if (sum == 0) r++;
    }
    for (int i = 0; i < m; i++) {
      int sum = 0;
      for (int j = 0; j < n; j++) {
        sum += a[j][i];
      }
      if (sum == 0) c++;
    }
    int ans = min(r, c);
    if (ans % 2 == 1)
      cout << "Ashish";
    else
      cout << "Vivek";
    cout << endl;
  }
}
