Made IndexTree a class instead of an object and removed IndexTreeContext
Split up tests that use LevelDB