fixed test for logout