EZP-22479: Added tests for SecurityListener