Fix unit test

Current max retry is 3 time. So existing codes try to replicate totally 4 times (1 initial + 3 retry).
Merge pull request #471 from couchbase/feature/issue_299_better_retrylogic

Fix unit test