Bug 4105: Add entity ownership integration test