change to child_process.exec and allow the output to be changed
test file creation