Made the ItemsCount test more comprehensive and removed an erroneous ass...

...ignment of ItemCount in the TreeRebalancer.