Test for Sheets, Index, related bug fixes