Added tests for SecurityPolicy