Preserve session state
Add test for startWithAppId with cached session