Add tests for grep-index