testing tree query