override ephemeralStreamInstance#index

avoid infinite loop when the stream is infinite
add ephemeralStreamInstance#index test