tree: add test-cases for Stop