[SECURITY-851] fixing test case

Port this from EAP. Without this the test will fail once picketbox 4.9.0 is integrated.