(#2577) - add some attachments tests

Just wanted to add some tests so I can understand how `npm-fullfat-registry` may be using PouchDB with stubs attachments and new_edits=false.