Leaf deletion with tests