Created new TestIndex class as a subclass of Index with test related methods
Improved tests to so they count invocations and use latches to reduce waiting time