test for class tree