adding unit tests for the security component