//Codeforces Global Round 13 B

#include <bits/stdc++.h>
#define ll long long int
using namespace std;

int main() {
	int t; cin >> t;
	while(t--) {
		int n, u, v;
		bool diff_two = false, diff_one = false;
		cin >> n >> u >> v;
		int arr[n];
		cin >> arr[0];
		for(int i=1; i<n; i++) {
			cin >> arr[i];
			if(abs(arr[i]-arr[i-1])>=2) diff_two = true;
			else if(abs(arr[i]-arr[i-1]) == 1) diff_one = true;
		}
		if(diff_two) cout << 0 << endl;
		else if(diff_one) cout << min(u, v) << endl;
		else cout << min(u+v, v+v) << endl;	
	}
}