Survival data with one intermediate state are described by semi-Markov and Markov models for counting processes whose intensities are defined in terms of two stopping times T-1 < T-2. Problems of goodness-of-fit for these models are studied. The test stat