Testing with trees