[SecurityBundle] fixed tests when used in standalone
Merge branch '2.3' into 2.4

* 2.3:
  [SecurityBundle] fixed tests when used in standalone