Port more security tests from Katana.