changed the way the index is cached
some more tests
changes that became necessary because the interface of class Index changed