added baby linear and Markov tests, mostly code copied from other tests