Make index_tests.rs its own crate, used by the other index-* crates.

Avoid using

```rust
#[path = "../index_tests.rs"]
mod tests;
```

… which doesn’t work nicely with crates.io.