model testing on the algorithm