Correct span in privacy error

Fix #19062.
These two tests seem to have been deleted, was that intentional?