add test for leave
Merge branch 'origin/feature-pt66739978'