More test coverage for trying to mutate a managed object when it's not allowed

+review REVIEW-5321