bugfixes to rotating standard out file after testing