Added Unit Tests for the SecurityContext Adapter