XWIKI-9421: Attachment version is incremented when a document is restored from recycle bin
* Add functional test.