Goodness-Of-Fit Tests For Autoregressive Logistic Regression Models And Generalized Linear Mixed Models