#include <bits/stdc++.h>
using namespace std;

int arr[110];

int main(){
    int T; scanf("%d", &T);
    while (T--){
        int N, U, V; scanf("%d%d%d", &N, &U, &V);
        for (int i = 1; i <= N; i++){
            scanf("%d", &arr[i]);
        }
        bool zero = false;
        bool col = true;
        for (int i = 2; i <= N; i++){
            if (abs(arr[i-1]-arr[i]) >= 2){
                zero = true;
                break;
            }
            if (abs(arr[i-1]-arr[i]) >= 1) col = false;
        }
        if (zero){
            printf("0\n");
            continue;
        }
        if (col) printf("%d\n", min(U, V)+V);
        else printf("%d\n", min(U, V));
    }
}