Implemented test for authorization and code refresh