#include <iostream>
#include <vector>
 
using namespace std;

int main()
{
    int i, n, u, v, greatestDif=0, j, presentDif;
    int asmall, abig;

    int t;
    cin>>t;
    int result[t];
    
    for(i=0; i<t; i++, greatestDif=0)
    {
        cin>>n>>u>>v;
        cin>>asmall;
        for(j=1; j<n; j++)
        {
            cin>>abig;
            if(abig>asmall)
                presentDif=abig-asmall;
            else
                presentDif=asmall-abig;
            
            if(presentDif> greatestDif)
                greatestDif=presentDif;
                
            asmall=abig;
        }
        
        if(greatestDif>1)
            result[i]=0;
            
        else if(greatestDif==0)
        {
            if(u<v)
                result[i]=v+u;
            else
                result[i]=v+v;
        }
        
        else
        {
            result[i]= v<u?v:u; 
        }
    }
    
    for(i=0; i<t; i++)
    cout<<result[i]<<"\n";
    return 0;
}