API Testing Method with Markov Models