#include<bits/stdc++.h>
using namespace std;
#define ll long long
const ll MAX =1000000000000000000;
ll mod= 1000000000;
long double pi=3.141592653589793238;
void pls()
{
  ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
#endif
}
const ll N=1e2+2;
ll n,u,v;
ll a[N];
void solve()
{  
        int t; cin>>t;while(t--){
            cin>>n>>u>>v;
            bool two=false,one=false,ze=false;
            for(int i=0;i<n;i++){
                  cin>>a[i];

                  
                  if(i)
                  {
                        ll x=abs(a[i]-a[i-1]);
                          if(x==1)
                              one=true;
                        else if(x==0)
                              ze=true;
                        else
                              two=true;


                  }

            }
            if(two){
                  cout<<0<<endl;
            }
            else if(one){
                  cout<<min(u,v)<<endl;
            }
            else
                  cout<<min((u+v),2*v)<<endl;
          
            






        }
       
}
int main(){pls(); solve(); return 0;}