incorporate nonLeaf Testing