#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t-- > 0) {
    int n, m;
    cin >> n >> m;
    int arr[n][m];
    vector<int> row(n);
    vector<int> col(m);
    int count = 0;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> arr[i][j];
        if (arr[i][j]) {
          row[i] = 1;
          col[j] = 1;
        }
      }
    }
    int r, c;
    int sum = 0;
    for (auto &it : row) {
      sum += it;
    }
    r = n - sum;
    sum = 0;
    for (auto &it : col) {
      sum += it;
    }
    c = m - sum;
    int ans = min(r, c);
    if (ans % 2) {
      cout << "Ashish"
           << "\n";
    } else
      cout << "Vivek"
           << "\n";
  }
  return 0;
}
