Add tests for PersistentIndex.