Test case for redirect flow