Added code for running distributed error tests.