[Security] Fix BC break introduces in #10694
fixed tests