tree index methods fixed, tests