add tests for partialstream