code to test the security interface