added testcase for reauthorization