added tests, changed GenBank.indexes to static method