Fixes security tests