Fix failing async test cases
* it('create a document')
  * stored the wrong status code for a successful creation of documents
* it('lets get the job results')
  * should check for status of job based on HTTP status code