fix streams test bug