Updated child process mock to match exec