#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m, a;
    cin >> n >> m;
    int blank_row = n;
    int blank_col = m;
    map<int, int> marked_row;
    map<int, int> marked_col;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> a;
        if (a == 1) {
          if (marked_row[i] != 1) {
            marked_row[i] = 1;
            blank_row--;
          }
          if (marked_col[j] != 1) {
            marked_col[j] = 1;
            blank_col--;
          }
        }
      }
    }
    string winner;
    int available_move = min(blank_row, blank_col);
    if (available_move % 2 == 0)
      winner = "Vivek";
    else
      winner = "Ashish";
    cout << winner << endl;
  }
  return 0;
}
