Make test.js exit 1 if error