Constancy and Goodness of Fit Test for Time Series Models