Canonical Cointegrating Regression and Testing for Cointegration in the Presence of I(1) and I(2) Variables