test.js should return error code