#include<bits/stdc++.h>
using namespace std;
#define ll long long  int 
#define fastread  ios_base::sync_with_stdio(false),cin.tie(NULL)
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define yes printf("YES\n")
#define no printf("NO\n")
#define mx (ll)3000003
#define pb push_back
ll ar[mx];
int main()
{
    fastread;
    ll test,i,j;
    cin>>test;
    for(ll t=1;t<=test;t++)
    {
        ll n,u,v,f=0;
        cin>>n>>u>>v;
        for(i=1;i<=n;i++)
        {
            cin>>ar[i];
        }ll f2=0;
        for(i=1;i<n;i++)
        {
            if(abs(ar[i]-ar[i+1])>=2)f=1;
            if(abs(ar[i]-ar[i+1])>=1)f2=1;

        }
        if(f==1)cout<<0<<endl;
        else if(f2==1)
        {
            cout<<min(u,v)<<endl;
        }
        else 
        {
            cout<<min(u+v,2*v)<<endl;
        }
    }
    return 0;
}