finished all code about distributed testing