Test of stationarity and localized autocovariance