Added test for logout