Added test for creating document with a shared attachment