//Things to remember:
// 1. Think Twice Code Once.
// 2. Dont worry about ratings it's already much lower.

#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef long long ll;
#define mod 1000000007 //10^9+7
#define inf 1e18
#define setbits(x) __builtin_popcountll(x)
#define zrobits(x) __builtin_ctzll(x)
#define ps(x, y) fixed << setprecision(y) << x

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t;
    cin >> t;
    while (t--)
    {
        int n, u, v;
        cin >> n >> u >> v;
        vector<int> arr(n + 1);
        for (int i = 1; i <= n; i++)
        {
            cin >> arr[i];
        }
        int ans = min(u + v, 2 * v);
        for (int i = 2; i <= n; i++)
        {
            if ((arr[i] != arr[i - 1] + 1) && (arr[i] != arr[i - 1] - 1) && (arr[i] != arr[i - 1]))
            {
                ans = 0;
                break;
            }
            else if ((arr[i] == arr[i - 1] + 1) || (arr[i] == arr[i - 1] - 1))
            {
                ans = min(u, v);
            }
        }
        cout << ans << "\n";
    }
    return 0;
}
