added unit test for Security plugin