Disequilibria and contagion in financial markets: Evidence from a new test