changed route to write the aggregated response to file, fixed unit test to use temporary folder for incoming and outgoing