This paper provides locally optimal pseudo-Gaussian and rank-based tests for the cointegration rank in linear cointegrated error-correction models with i.i.d. elliptical innovations. The proposed tests are asymptotically distribution-free, hence their validity does not depend on the actual...