Added test.js for returning simple error to console.