Add integration test for redirect flow