add test for LazyAttachmentDoc cache invalidation