Added test for get spanning hypertree.
Change MAX_VAL to sys.maxsize