#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int p = 0; p < t; p++) {
    int n, a, b;
    cin >> n >> a >> b;
    long long a1 = b;
    long long a2 = -1;
    for (int i = 0; i < n; i++) {
      char c;
      cin >> c;
      long long b1 = -1;
      long long b2 = -1;
      if (a1 != -1 && c != '1') {
        long long val = (a1 + a + b);
        b1 = (b1 == -1) ? val : min(b1, val);
      }
      if (a2 != -1 && c != '1') {
        long long val = (a2 + 2 * a + b);
        b1 = (b1 == -1) ? val : min(b1, val);
      }
      if (a1 != -1 && c != '1') {
        long long val = (a1 + 2 * a + 2 * b);
        b2 = (b2 == -1) ? val : min(b2, val);
      }
      if (a2 != -1) {
        long long val = (a2 + a + 2 * b);
        b2 = (b2 == -1) ? val : min(b2, val);
      }
      a1 = b1;
      a2 = b2;
    }
    cout << a1 << endl;
  }
  return 0;
}
