unit tests for markov chains