#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    int col = m, row = n;
    int matrix[50][50];
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> matrix[i][j];
      }
    }
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (matrix[i][j] == 1) {
          row--;
          break;
        }
      }
    }
    for (int j = 0; j < m; j++) {
      for (int i = 0; i < n; i++) {
        if (matrix[i][j] == 1) {
          col--;
          break;
        }
      }
    }
    if (!row || !col) {
      cout << "Vivek"
           << "\n";
    } else {
      if (min(row, col) % 2 != 0) {
        cout << "Ashish "
             << "\n";
      } else {
        cout << "Vivek"
             << "\n";
      }
    }
  }
  return 0;
}
