Added two tests: replication with Attachment and multiplereplication