Revamp test case as reference to pantarei/oauth2 changes.