MAINT Set random_state, modernize tests

I modernize a bit `test_tree.py`.