Create the pipe's master-end before the child process that uses pipe's slave-end is spawned.
Remove inappropriate assertions that was just copied from test_execCommandAction().