(#506) - putAttachment don't respect rev parameter

adds test and fix.
Merge pull request #507 from daleharvey/506-putAttachment-not-respect-rev-parameter

(#506) - putAttachment don't respect rev parameter