Fixes #30959 Adds an API test for protected tags. Fix existing tag in combination with fixtures. (cherry picked from commit b1d8f13bd0ecd9c576ebf2ecbd9c7dbeb3f5254f)