Tests for new tree iterator functionality