lib/api/batch.js test/batch.js