[testMain] Don't open unused pipes.

The pipes has been leaked. Becuase they are not used, we don't
open the pipe to a child process.