Add leave command, and test.