// 2 months of future
#include <bits/stdc++.h>

using namespace std;

#define endl "\n"
#define all(x) x.begin(), x.end()
#define ll long long int
#define pb push_back

int main()
{

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	ll t = 1;
	cin >> t;
	while (t--) {
		ll n, u, v;
		cin >> n >> u >> v;

		ll temp, ans = 1e18 + 1;
		vector <ll> ve;

		for (int i = 0; i < n; i++) {
			cin >> temp;
			ve.pb(temp);
		}


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

	}
	return 0;

}