Add: test for streaming secondary index query.

There is a bug that prevents end from ever getting called on the stream.
The source of this bug is still unclear.

At least now we have a test case that identifies the bug.