Correctly handle multiple test.js results