test/security: introduce security lib tests