fix class tree, helper constructors test

- fix class tree misbehaving on non-ordered insertions
- add helper constructor test and test data
- test data randomization in class tree test
add LayoutParams generation, LayoutParams test