Remove context indexes after each test

This pull request addresses reduces the number of failures reported in #331.