Add DESTROY() to OntologyIndex and fix test

In the test, don't open an index multiple times.