#include <bits/stdc++.h>
using namespace std;
int row[52][52];
int col[52][52];
int n, m;
void row_full(int r, int c) {
  for (int i = r; i < n; i++) row[i][c] = 1;
  for (int i = r; i >= 0; i--) row[i][c] = 1;
}
void col_full(int r, int c) {
  for (int i = c; i < m; i++) col[r][i] = 1;
  for (int i = c; i >= 0; i--) col[r][i] = 1;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    for (int i = 0; i < 52; i++) {
      for (int j = 0; j < 52; j++) {
        row[i][j] = 0;
        col[i][j] = 0;
      }
    }
    cin >> n >> m;
    bool val[n][m];
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> val[i][j];
        if (val[i][j] == 1 && col[i][j] == 0) col_full(i, j);
        if (val[i][j] == 1 && row[i][j] == 0) row_full(i, j);
      }
    }
    int c = 0;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (row[i][j] == 0 && col[i][j] == 0) {
          c++;
          col_full(i, j);
          row_full(i, j);
        }
      }
    }
    if (c == 0)
      cout << "Vivek" << endl;
    else if (c % 2 == 0)
      cout << "Vivek" << endl;
    else
      cout << "Ashish" << endl;
  }
  return 0;
}
