Asymptotic null distributions of stationarity and nonstationarity tests under local-to-finite variance errors