test.js: exit with 1 if there's a failed test