Implemented generic security test