Change child-process tests to built-in stdin-stdout rather than custom scripts