Testing economic time series for stationarity and nonstationarity