Unit root tests in the presence of autocorrelated errors and structural change