COSMIT get rid of deprecation warning in tree tests