add stderr, stdout handing to unit-tests for launch_tor