COOK-4572: fix security tests

Unbreak the security tests again