test error when writing a file on utils.js