Test option to log out the user when closing the browser