QA: Make flow_anon and flow_logged_in tests pass.

Change-Id: I77d81ddfe213028a158048c33691aebcd04dbf4b
Merge "QA: Make flow_anon and flow_logged_in tests pass." into frontend-rewrite