Tests added to prevent regressions over broken index functionality