Cointegration testing in dependent panels with breaks