#include <bits/stdc++.h>
using namespace std;

#define ll long long
const long long INF=1e18;
int main()
{
    ll t, u, v, n,num;
    cin >> t;

    while(t--){
        cin >> n >> u >> v;
        ll a[n];
        num = 0;

        for(ll i = 0; i<n; i++)
            cin >> a[i];

        ll ans = INF;
        for(ll i = 1; i<n; i++){
            if(abs(a[i] - a[i-1]) == 1)
                ans = min(ans, min(u,v));
            else if(abs(a[i-1] - a[i]) >= 2)
                ans = 0;
            else if((a[i-1] - a[i]) == 0)
                ans = min(ans, v+ min(u,v));
        }
        cout<<ans<<endl;
    }
}
