Test tree extent calculation