Moved some methods from ECTree to ECNode.
Added an extra test and improved test speed.