Fixed an issue on tests where reading wrong index response