Markov models are a convenient and useful method of estimating transition rates between levels of a categorical response variable, such as a disease stage, which changes over time. In medical applications the response variable is typically observed at irregular intervals. A Pearson-type goodness-of-fit test for such models was proposed by Aguirre-Hernandez and Farewell (Statistics in Medicine. 2002), but this test is not applicable in the common situation where the process includes an absorbing state, such as death, for which the time of entry is known precisely nor when the data include censored state observations. This paper presents a modification to the Pearson-type test to allow for these cases. An extension of the method, to allow for the class of hidden Markov models where the response variable is subject to misclassification error, is given. The method is applied to data on cardiac allograft vasculopathy in post-heart-transplant patients.