finished the pipeline up to writing the test outputs