add tests for wrapped streams ending/finishing