SENTRY-223: Add a test for updates with doc-level security (Gregory Chanan via Vamsee Yarlagadda)