test for user leaving