Fixing the tests : hook the write on process.stdout.write() before loading the task