Unit tests for tree-minimum and tree-maximum