#include <bits/stdc++.h>
#define endl "\n"

using namespace std;

int main()
{
    #ifndef ONLINE_JUDGE 
    freopen("i.txt", "r", stdin);   
    freopen("o.txt", "w", stdout); 
    #endif

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

    int t;
    cin>>t;
    while(t--)
    {
    	int n,u,v;
    	cin>>n>>u>>v;
    	int prev=0;
    	int ans=INT_MAX;
    	int b[n];
    	for(int i=0;i<n;i++)
    	{
    		cin>>b[i];
    	}
    	prev=b[0];
    	for(int i=1;i<n;i++)
    	{
    		if(abs(b[i]-prev)>=2)
    		{
    			ans=min(ans,0);
    		}
    		else if(b[i]==prev)
    		{
    			ans=min(ans,v+min(u,v));
    		}
    		else
    		{
    			ans=min(ans,min(u,v));
    		}
    		prev=b[i];
    	}
    	cout<<ans<<endl;
    	
	}	

 	return 0;
}    