#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mx 200005
ll c0, c1, h, dp[mx];
int n;
string s1;
ll func(int pos)
{
if(pos>=n)
return 0;
//ll &ret = dp[pos];
ll a1=0, a2=0, a3=0;
if(s1[0] == '0'){
a1 = c0+func(pos+1);
a2 = c1+h+func(pos+1);
}
else{
a1 = c1+func(pos+1);
a2 = c0+h+func(pos+1);
}
cout<< "check\n";
return min(a1, a2);
}
void solve()
{
cin >> n >> c0 >> c1 >> h >> s1;
cout << func(0) << "\n";
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int t=1;
cin >> t;
while(t--)
solve();
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAojZGVmaW5lIGxsIGxvbmcgbG9uZwojZGVmaW5lIG14IDIwMDAwNQogCiAKIApsbCBjMCwgYzEsIGgsIGRwW214XTsKaW50IG47CnN0cmluZyBzMTsKIApsbCBmdW5jKGludCBwb3MpCnsKICAgIGlmKHBvcz49bikKICAgICAgICByZXR1cm4gMDsKICAgIC8vbGwgJnJldCA9IGRwW3Bvc107CiAgICBsbCBhMT0wLCBhMj0wLCBhMz0wOwogICAgaWYoczFbMF0gPT0gJzAnKXsKICAgICAgICBhMSA9IGMwK2Z1bmMocG9zKzEpOwogICAgICAgIGEyID0gYzEraCtmdW5jKHBvcysxKTsKICAgIH0KICAgIGVsc2V7CiAgICAgICAgYTEgPSBjMStmdW5jKHBvcysxKTsKICAgICAgICBhMiA9IGMwK2grZnVuYyhwb3MrMSk7ICAgCiAgICB9CiAgICBjb3V0PDwgImNoZWNrXG4iOwogICAgcmV0dXJuIG1pbihhMSwgYTIpOwp9CiAKdm9pZCBzb2x2ZSgpCnsgICAKICAgIAogICAgY2luID4+IG4gPj4gYzAgPj4gYzEgPj4gaCA+PiBzMTsKICAgIGNvdXQgPDwgZnVuYygwKSA8PCAiXG4iOwogCn0KIAppbnQgbWFpbigpCnsKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oMCk7CiAgICBjaW4udGllKDApOwogCiAgICBpbnQgdD0xOwogICAgY2luID4+IHQ7CiAgICAKICAgIHdoaWxlKHQtLSkKICAgICAgICBzb2x2ZSgpOwogICAgCiAgICByZXR1cm4gMDsKfQ==