adding property 'active' and 'index' to class Node and Leaf + code style
update tests, printing more info on tests