Test that indexOf() works for a long stream