all tests passing with non global text_tree. but performance shouldnt be very good