A test of self-stationarity