Hackish way of testing tree type