classRatesTestTrees returns rates and ys