refined test case StreamTest