Added error checking for equality as branch
Added test for order and arbitray depth
Added test for simple enclosure