Test that log out works as expected