add more tests for parameter validation in test_tree.py