Leveraging the cloud for distributed testing