Fixing unit test failure of BearerSecuirty