Fixing sme tests, and the Twitter index, which still has an array out of bounds, intermittently.