Improved NoopSecurityHandlerTest and RoleSecurityHandlerTest for full test coverage.