Add test for handling childProcess.exec callback