testing_cleanup function

Cleans out certain output arguments to allow perfect reproducibility of the output