Adaptive Tests for Changing Unit Roots in Nonstationary Time Series