added the distributed testing code