fix mocha tests (REST API + Batch upload issue)