logout function test