Add test to try repro error with logging out