Testing weak exogeneity in cointegrated panels