(#942) - Fix replicate: detecton of errors from bulkDocs

This fixes replicate to detect and report errors from bulkDocs, per the tests in PR #1713 and changes and enables those tests.

In the first test, the mock of bulkDocs broke put, so replicate could not update checkpoint.

Some of the expectations in the tests seemed wrong to me, so I have amended them.