Add tests for first-(r)index to spectest