[Process] [Tests] Fixing faulty tests for stdout and stderr flush methods