Added mock of calling subprocesses with timeout on requesting data from stdout.