Bulk updates also support doc_as_upsert.
Added tests for bulk api using doc_as_upsert.