Revamp AuthorizationControllerProvider will passed good test cases.