Fix #322 Cannot push a document with an attachment

* Fix the contentOptions operation.

* Add ReplicationTest.TestPushPullDocumentWithAttachment()