override ephemeralStreamInstance#index

avoid infinite loop when the stream is infinite
add ephemeralStreamInstance#index test
Merge pull request #516 from xuwei-k/ephemeralStream-index

override ephemeralStreamInstance#index