Fixing test issue on empty index