add test for unsubscribe while iterating leaf node