Tests for the Viterbi procedure.