fixed bug in StreamParserTest