#include <bits/stdc++.h>

using namespace std;

#define FOR(i, a) for(int i = 0; i < (int) a; i++)
#define PB push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define F first
#define S second

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;

void solve(){
	ll n, u, v; cin >> n >> u >> v;
	vi V(n); FOR(i, n) cin >> V[i];
	ll ans = 2e9+7;

	for(int i = 0; i < n-1; i++){
		if(V[i] == V[i+1]){
			ans = min({ans, 2*v, u+v});
		}else if(abs(V[i]-V[i+1]) == 1){
			ans = min({ans, u, v});
		}else{
			ans = 0;
		}
	}

	cout << ans << '\n';

}

int main(){
	ios::sync_with_stdio(false); cin.tie(0);

	int t=1; cin >> t;
	while(t--){
		solve();
	}

	return 0;
}