Add test leaveActivity