test function

Test residuals for stationarity and randomness