Add working `delete()` and `test_delete_root()`.