Tests of cointegration rank and the choice of alternative