#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int inf = 1e9;
int main(){
    ios::sync_with_stdio(0), cin.tie(0);
    int t;
    cin >> t;
    while (t--){
        int n, u, v;
        cin >> n >> u >> v;
        int x[n];
        bool yes = 0, can = 0;
        for (int i = 0; i < n; i++){
            cin >> x[i];
            yes |= (i and x[i] != x[i - 1]);
            can |= (i and abs(x[i]- x[i - 1]) > 1);
        }
        if (can) cout << 0 << '\n';
        else if (yes) cout << min(u, v) << '\n';
        else cout << min(u + v, 2 * v) << '\n';
    }
}