A general goodness‐of‐fit test for Markov and hidden Markov models | Synapse